package com.slz3.business.module.goodsManagement.baseGoods.service;

import com.slz3.business.module.goodsManagement.baseGoods.domain.BaseGoods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Page;
import org.springframework.util.MultiValueMap;

import java.util.List;
import java.util.Optional;
import java.util.UUID;
import java.util.stream.Stream;

/**
 * 非事务型 service
 */
public interface BaseGoodsService {

    BaseGoods save(BaseGoods baseGoods);

    Page<BaseGoods> page(MultiValueMap<String,String> queryParams);

    BaseGoods modify(BaseGoods baseGoods);

    Optional<BaseGoods> single(UUID uuid);

    List<BaseGoods> findAllByUuids(Iterable<UUID> uuids);

    List<BaseGoods> delete(List<BaseGoods> baseGoodsList);

}
